﻿@model SpyApp.Models.Device
@{
    ViewBag.Title = "Home";
}

<div class="page-header">
    <h3>
        <img src="~/Images/home-64.png" class="size-32" />
        @ViewBag.Title
    </h3>
</div>

<div class="table-contain">
    <table class="max-width">
        <tbody>
            <tr>
                <td>
                    <img class="inline size-24" src="~/Images/message-64.png" />
                    @Html.ActionLink("Messages", "Index", "Message", null,
                        new { @class = "list-group-item-contain" })
                </td>
                <td>
                    @(Model.Messages != null ? Model.Messages.Count() : 0)
                </td>
            </tr>
            <tr>
                <td>
                    <img class="inline size-24" src="~/Images/location-64.png" />
                    @Html.ActionLink("Location", "Index", "Location", null,
                        new { @class = "list-group-item-contain" })
                </td>
                <td>
                    @(Model.LocationTracking != null ? Model.LocationTracking.Count() : 0)
                </td>
            </tr>
        </tbody>
    </table>
</div>
